x11: Fix damage tracking hack
authorMatthias Clasen <mclasen@redhat.com>
Fri, 8 Jan 2016 18:44:36 +0000 (13:44 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 8 Jan 2016 18:44:36 +0000 (13:44 -0500)
commit4d60b5b10c472fb3b37465cede661288708e16e6
treee4c19b887527b6994ca4bfb5a81bbdad0f3fe244
parent3f56c530b3b5c77f2b9194c479afd1cdd25e9a42
x11: Fix damage tracking hack

We are setting mime data with a destroy notify on the cairo
surface to get notified when cairo registers damage for the
surface (in that case, it clears the mime data, calling the
destroy notify). Unfortunately, the destroy notify is also
called when we remove the mime data ourselves, which was
not intentional.

Use a flag in the window impl struct to ignore the callback
when we are clearing the hook.
gdk/x11/gdkwindow-x11.c
gdk/x11/gdkwindow-x11.h